package com.ex.giaodien.MyPanel;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

public class GiaoDienPanel extends JFrame{

	JLabel lb_hoten;
	JButton btn_nhap;
	
	JPanel pn1;
	
	public GiaoDienPanel(String title) {
		super(title);
		
		lb_hoten = new JLabel("Ho ten");
		btn_nhap = new JButton("Nhap");
		
		pn1 = new JPanel();
		
		pn1.add(lb_hoten);
		pn1.add(btn_nhap);
//		pn1.setBackground(Color.BLUE);
		
		TitledBorder titleBd = new TitledBorder("Group");
		pn1.setBorder(titleBd);
		
		this.add(pn1);
		
	}
}
